home *** CD-ROM | disk | FTP | other *** search
Java Source | 1997-02-27 | 722 b | 45 lines | [TEXT/CWIE] |
- /* SK8 © 1997 Apple Computer, Inc.
- This code is protected under the current SK8 License
- See http://sk8.research.apple.com/ for more information
- Apple Research Laboratories
- */
-
-
- import java.awt.*;
-
- class Mouse {
- public static int x = 0, y = 0;
- public static boolean button = false;
-
- public static int x() {
- return x;
- }
-
- public static int y() {
- return y;
- }
- public static int h() {
- return x;
- }
-
- public static int v() {
- return y;
- }
-
- public static boolean up() {
- return (button == false);
- }
-
- public static boolean down() {
- return (button == true);
- }
-
- public static Point location() {
- return new Point(x, y);
- }
- public static list locationlist() {
- return sk8.list(x, y);
- }
- }
-
-